<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
    <input type="hidden" name="row[id]" value="{$row.id}">
	<div class="panel panel-default panel-intro">
		<div class="panel-body">
			<div id="agentcompany" class="form-group" {if $row['procuretype'] eq "" || $row['procuretype'] eq 7 || $field neq 'agentcompany'}style="display:none"{/if}>
				<label for="c-agentcompany" class="control-label col-xs-12 col-sm-2">{:__('代理公司')}:</label>
				<div class="col-xs-12 col-sm-8">
					<input id="c-agentcompany" data-rule="" class="form-control" name="row[agentcompany]" type="text" value="{$row.agentcompany|htmlentities}">
				</div>
			</div>
			<div id="biddercompany" class="form-group" {if $row['procuretype'] eq "" || $field neq 'biddercompany'}style="display:none"{/if}>
				<label for="c-biddercompany" class="control-label col-xs-12 col-sm-2">{:__('中标单位')}:</label>
				<div class="col-xs-12 col-sm-8">
					<input id="c-biddercompany" data-rule="" class="form-control" name="row[biddercompany]" type="text" value="{$row.biddercompany|htmlentities}">
				</div>
			</div>
			<div id="noticetime" class="form-group" {if $row['procuretype'] eq "" || $row['procuretype'] eq 7 || $field neq 'noticetime'}style="display:none"{/if}>
				<label class="control-label col-xs-12 col-sm-2">{:__('公告发布时间')}:</label>
				<div class="col-xs-12 col-sm-8">
					<input id="c-noticetime" data-rule="" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[noticetime]" type="text" value="{if $row.noticetime}{$row.noticetime|datetime}{/if}">
				</div>
			</div>
			<div id="bidopentime" class="form-group" {if $row['procuretype'] eq "" || $row['procuretype'] eq 7 || $field neq 'bidopentime'}style="display:none"{/if}>
				<label class="control-label col-xs-12 col-sm-2">{:__('开标时间')}:</label>
				<div class="col-xs-12 col-sm-8">
					<input id="c-bidopentime" data-rule="" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[bidopentime]" type="text" value="{if $row.bidopentime}{$row.bidopentime|datetime}{/if}">
				</div>
			</div>
			<div id="contracttime" class="form-group" {if $row['procuretype'] eq "" || $field neq 'contracttime'}style="display:none"{/if}>
				<label class="control-label col-xs-12 col-sm-2">{:__('合同签订时间')}:</label>
				<div class="col-xs-12 col-sm-3">
					<input id="c-contracttime" data-rule="" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[contracttime]" type="text" value="{if $row.contracttime}{$row.contracttime|datetime}{/if}">
				</div>
			</div>
			<div id="bidding" class="form-group" {if $row['procuretype'] eq "" || $row['procuretype'] eq 7 || $field neq 'bidding'}style="display:none"{/if}>				
				<label for="c-bidding" class="control-label col-xs-12 col-sm-2">{:__('招标文件')}:</label>				
				<div class="col-xs-12 col-sm-8">					
					<div class="input-group">						
						<input id="c-bidding" data-rule="" class="form-control" size="50" name="row[bidding]" type="text" value="{$row.bidding}">
						<div class="input-group-addon no-border no-padding">							
							<span><button type="button" id="faupload-bidding" class="btn btn-danger faupload" data-input-id="c-bidding" data-mimetype="jpg,png,csv,doc,docx,xls,xlsx,pdf" data-multiple="false" data-preview-id="p-bidding"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>							
							<!-- <span><button type="button" id="fachoose-bidding" class="btn btn-primary fachoose" data-input-id="c-bidding" data-mimetype="jpg,png,csv,doc,docx,xls,xlsx,pdf" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span> -->
							<span style="display: inline-block;">{:build_checkboxs('row[nobidding]', ['1'=>__('不上传')], $row['nobidding'])}</span>
						</div>						
						<span class="msg-box n-right" for="c-bidding"></span>					
					</div>					
					<ul class="row list-inline faupload-preview" id="p-bidding"></ul>
				</div>			
			</div>
			<div id="rfp" class="form-group" {if $row['procuretype'] eq "" || $row['procuretype'] eq 7 || $field neq 'rfp'}style="display:none"{/if}>				
				<label for="c-rfp" class="control-label col-xs-12 col-sm-2">{:__('投标文件')}:</label>				
				<div class="col-xs-12 col-sm-8">					
					<div class="input-group">						
						<input id="c-rfp" data-rule="" class="form-control" size="50" name="row[rfp]" type="text" value="{$row.rfp}">						
						<div class="input-group-addon no-border no-padding">							
							<span><button type="button" id="faupload-rfp" class="btn btn-danger faupload" data-input-id="c-rfp" data-mimetype="jpg,png,csv,doc,docx,xls,xlsx,pdf" data-multiple="false" data-preview-id="p-rfp"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>							
							<!-- <span><button type="button" id="fachoose-rfp" class="btn btn-primary fachoose" data-input-id="c-rfp" data-mimetype="jpg,png,csv,doc,docx,xls,xlsx,pdf" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span> -->
							<span style="display: inline-block;">{:build_checkboxs('row[norfp]', ['1'=>__('不上传')], $row['norfp'])}</span>
						</div>						
						<span class="msg-box n-right" for="c-rfp"></span>					
					</div>					
					<ul class="row list-inline faupload-preview" id="p-rfp"></ul>				
				</div>			
			</div>
			<div id="acceptance" class="form-group" {if $row['procuretype'] eq "" || $row['procuretype'] eq 7 || $field neq 'acceptance'}style="display:none"{/if}>
				<label for="c-acceptance" class="control-label col-xs-12 col-sm-2">{:__('中标通知书')}:</label>
				<div class="col-xs-12 col-sm-8">
					<div class="input-group">
						<input id="c-acceptance" data-rule="" class="form-control" size="50" name="row[acceptance]" type="text" value="{$row.acceptance}">
						<div class="input-group-addon no-border no-padding">
							<span><button type="button" id="faupload-acceptance" class="btn btn-danger faupload" data-input-id="c-acceptance" data-mimetype="jpg,png,csv,doc,docx,xls,xlsx,pdf" data-multiple="false" data-preview-id="p-acceptance"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
							<!-- <span><button type="button" id="fachoose-acceptance" class="btn btn-primary fachoose" data-input-id="c-acceptance" data-mimetype="jpg,png,csv,doc,docx,xls,xlsx,pdf" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span> -->
							<span style="display: inline-block;">{:build_checkboxs('row[noacceptance]', ['1'=>__('不上传')], $row['noacceptance'])}</span>
						</div>
						<span class="msg-box n-right" for="c-acceptance"></span>
					</div>
					<ul class="row list-inline faupload-preview" id="p-acceptance"></ul>
				</div>
			</div>
			<div id="lawyerletter" class="form-group" {if $row['procuretype'] eq "" || $field neq 'lawyerletter'}style="display:none"{/if}>				
				<label for="c-lawyerletter" class="control-label col-xs-12 col-sm-2">{:__('律师审核意见书')}:</label>				
				<div class="col-xs-12 col-sm-8">					
					<div class="input-group">						
						<input id="c-lawyerletter" data-rule="" class="form-control" size="50" name="row[lawyerletter]" type="text" value="{$row.lawyerletter}">						
						<div class="input-group-addon no-border no-padding">							
							<span><button type="button" id="faupload-lawyerletter" class="btn btn-danger faupload" data-input-id="c-lawyerletter" data-mimetype="jpg,png,csv,doc,docx,xls,xlsx,pdf" data-multiple="false" data-preview-id="p-lawyerletter"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>							
							<!-- <span><button type="button" id="fachoose-lawyerletter" class="btn btn-primary fachoose" data-input-id="c-lawyerletter" data-mimetype="jpg,png,csv,doc,docx,xls,xlsx,pdf" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span> -->
							<span style="display: inline-block;">{:build_checkboxs('row[nolawyerletter]', ['1'=>__('不上传')], $row['nolawyerletter'])}</span>
						</div>						
						<span class="msg-box n-right" for="c-lawyerletter"></span>					
					</div>					
					<ul class="row list-inline faupload-preview" id="p-lawyerletter"></ul>
				</div>			
			</div>
			<div id="contract" class="form-group" {if $row['procuretype'] eq "" || $field neq 'contract'}style="display:none"{/if}>		
				<label for="c-contract" class="control-label col-xs-12 col-sm-2">{:__('中标合同')}:</label>				
				<div class="col-xs-12 col-sm-8">					
					<div class="input-group">						
						<input id="c-contract" data-rule="" class="form-control" size="50" name="row[contract]" type="text" value="{$row.contract}">
						<div class="input-group-addon no-border no-padding">							
							<span><button type="button" id="faupload-contract" class="btn btn-danger faupload" data-input-id="c-contract" data-mimetype="jpg,png,csv,doc,docx,xls,xlsx,pdf" data-multiple="false" data-preview-id="p-contract"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>							
							<!-- <span><button type="button" id="fachoose-contract" class="btn btn-primary fachoose" data-input-id="c-contract" data-mimetype="jpg,png,csv,doc,docx,xls,xlsx,pdf" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span> -->
							<span style="display: inline-block;">{:build_checkboxs('row[nocontract]', ['1'=>__('不上传')], $row['nocontract'])}</span>
						</div>						
						<span class="msg-box n-right" for="c-contract"></span>					
					</div>					
					<ul class="row list-inline faupload-preview" id="p-contract"></ul>
				</div>			
			</div>
		</div>
	</div>	
	
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('取消')}</button>
        </div>
    </div>
</form>